Python: Run length encoding

join shbcf.ru